package com.hlk.hlk_blog.service;


import com.hlk.hlk_blog.entity.Tag;


import java.util.List;

/**
 * Created by limi on 2017/10/16.
 */
public interface TagService {
    List<Tag> findTag(Integer tagNums);

    //前台获取blog的标签
    List<Tag> getAllTags();

    //获取标签下最多blog的tagid
    Long getMaxTagId();

    //通过编号获取标签
    Tag getTagById(Long id);

    //从字符串中获取tag集合
    List<Tag> getTagByString(String text);

    //根据name获取tag
    Tag getTagByName(String name);

    //新增tag
    boolean saveTag(Tag tag);

    //更新tag
    boolean updateTag(Tag tag);

    //删除tag
    boolean deleteTag(Long id);


}
